from time import strftime, localtime


class Logger:
    @staticmethod
    def _now():
        return f"\x1b[2m{strftime('%Y/%m/%d %H:%M:%S', localtime())}\x1b[0m"

    @staticmethod
    def Debug(*args, **kwargs):
        print(f"\x1b[1;34mdebug:\x1b[0m {Logger._now()} {format(*args, **kwargs)}")

    @staticmethod
    def Info(*args, **kwargs):
        print(f"\x1b[1;32m info:\x1b[0m {Logger._now()} {format(*args, **kwargs)}")

    @staticmethod
    def Warn(*args, **kwargs):
        print(f"\x1b[1;33m warn:\x1b[0m {Logger._now()} {format(*args, **kwargs)}")

    @staticmethod
    def Error(*args, **kwargs):
        print(f"\x1b[1;31merror:\x1b[0m {Logger._now()} {format(*args, **kwargs)}")
